/**
 * Copyright (c) 2016. Visionet and/or its affiliates. All right reserved.
 * VISIONET PROPRIETARY/CONFIDENTIAL.
 */
package com.visionet.jumper.core.domain.search.enumdata;

/**
 * @author shengjie
 * @since 2016年1月28日
 *
 */
public enum SearchOperator {
	//等于
	eq("eq","="),
	//不等于
	ne("ne","!="),
	//大于
	gt("gt",">"),
	//大于等于
	gte("gte",">="),
	//小于
	lt("lt","<"),
	//小于等于
	lte("lte","<="),
	//前缀模糊匹配
	prefixLike("prefixLike","like"),
	//前缀模糊不匹配
	prefixNotLike("prefixNotLike","not like"),
	//后缀模糊匹配
	suffixLike("suffixLike","like"),
	//后缀模糊不匹配
	suffixNotLike("suffixNotLike","not like"),
	//模糊匹配
	like("like","like"),
	//不匹配
	notLike("notLike","not like"),
	//空
	isNull("isNull","is null"),
	//非空
	isNotNull("isNotNull","is not null"),
	//包含
	in("in","in"),
	//不包含
	notIn("notIn","not in");
	
	private String key;
	private String value;
	
	SearchOperator (String key, String value){
		this.key = key;
		this.value = value;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}
